package com.sr.wslr;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by 17032906 on 2017/10/18.
 */

@SpringBootApplication
@EnableTransactionManagement //如果mybatis中service实现类中加入事务注解，需要此处添加该注解
@MapperScan("com.sr.wslr.dao.mappers")  //扫描的是mapper.xml中namespace指向值的包位置
public class SrApplication {
    public static void main(String[] args) {
        SpringApplication.run(SrApplication.class, args);
    }
}
